package com.job.shuang.HomeWork0709.JichengDuotai;

/**
 * @author Liushuang
 * @version 1.0
 * @since 2022-07-09 21:26:58
 */
public class Person {  //父类，人
    protected String name;  //姓名
    protected String identity;  //工作
    protected int phoneNumber;  //电话
    protected String gender;  //性别

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getIdentity() {
        return identity;
    }
    public void setIdentity(String identity) {
        this.identity = identity;
    }
    public int getPhoneNumber() {
        return phoneNumber;
    }
    public void setPhoneNumber(int phoneNumber) {
        this.phoneNumber = phoneNumber;
    }
    public String getGender() {
        return gender;
    }
    public void setGender(String gender) {
        this.gender = gender;
    }

    public void selfIntroduction(){
        System.out.println("我叫："+name+"我是一位："+identity+"我的电话号码为："+phoneNumber+"我是："+gender);
    }
}
